﻿@using SelfMadeMillionaire.Core
@using SelfMadeMillionaire.Web.Infrastructure
@model SelfMadeMillionaire.Core.Entities.Publication
@{
	ViewBag.Title = "Details";
}

<div class="row">
	<div class="col-sm-12 col-md-12 col-lg-12">

		<!--left content block-->
		<div class="left_col_block">
			<div class="content_block_title">
				<h5>@Model.Date.ToString("MMMM dd, yyyy") @Model.Title</h5>
				<div class="title_bottom_arrow">
					<img src="@Url.Content("~/Content/images/down_arrow.png")" alt="" /></div>
			</div>

			<!--biography 01-->
			<div class="options_container">
				<h4 class="options_title">@Model.Title
							@if(!string.IsNullOrWhiteSpace(Model.PdfFileName) && Request.IsAuthenticated)
                        	{
                                    <a class="right_pdf_icon" href="@FileLink.GetAbsoluteLinkOnFile(@Model.PdfFileName)">
										<img src="@Url.Content("~/Content/images/pdf_icon.png" )" alt="PDF download" title="PDF download" /></a>
	                        }
				</h4>
				<p>
					@Html.Raw(Model.HtmlContent)
				</p>
			</div>
			<!--end biography 01-->

		</div>
		<!--end left content block-->

	</div>

</div>


